Accusoft.BarcodeXpress10.Net
Write a QR Code Barcode

Use the code example below as a guideline for writing QR Code barcodes.

C# Example - Basic steps for writing QR Code barcodes using Accusoft.BarcodeXpress.Net
Copy Code
//create and unlock the BarcodeXpress component
BarcodeXpress bcx = new BarcodeXpress();
// The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName("YourSolutionName");
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
// The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensing");
//Create the writer QRCode class
WriterQRCode qrCode = new WriterQRCode(bcx);
// Set the text value
qrCode.BarcodeValue = "QR Code Value";
//call Create and get resulting image
if (imageXView1.Image != null)
   imageXView.Image.Dispose();
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, qrCode.Create(), true);
// dispose of the writer QR Code and barcode component
qrCode.Dispose();
bcx.Dispose();

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback